<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>外边距</title>
    <style>
        .container{
            width: 1000px;
            height: 600px;
            border: 1px solid red;
            margin: 100px auto;
        }
        .c1{
            width: 200px;
            height: 100px;
            background-color: red;
            /*margin-bottom: 100px;*/
            /*magrin-top:100px;*/
            /*margin-left: 100px;*/
            /*margin-right: 100px;*/
            margin: 50px 100px 200px 300px;
        }
        .c2{
            width: 200px;
            height: 100px;
            background-color: green;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="c1"></div>
    <div class="c2"></div>
</div>
</body>
</html>